﻿using System;
namespace Bit.Art.Api.Models
{
    /// <summary>
    /// 对于ClientCredential的登录方式，获取AccessToken的请求
    /// </summary>
    public class GetAccessTokenRequest
    {
        /// <summary>
        /// AppId或者ClientId
        /// </summary>
        public string AppId { get; set; }

        /// <summary>
        /// ClientId的AppSecret
        /// </summary>
        public string AppSecret { get; set; }

        /// <summary>
        /// 需要申请的权限，由逗号分隔的权限列表，默认是“parnter"
        /// </summary>
        public string Scope { get; set; } = "parnter";
    }

    /// <summary>
    /// 获取终端用户的AccessToken
    /// </summary>
    public class GetEndUserAccessTokenRequest
    {
        /// <summary>
        /// 用户名
        /// </summary>
        public string Username { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }

        /// <summary>
        /// 需要申请的权限，由空格分隔的权限列表，默认是“market"
        /// </summary>
        public string Scope { get; set; } = "market";
    }
}
